
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加员工界面-管理者界面</title>
<!-- 导入semantic的样式 -->
<jsp:include page="../head.jsp">
	<jsp:param value="员工创建" name="title" />
</jsp:include>
<script type="text/javascript">
	function check() {
		var m=doucument.getElementByName("email");
		alert(m.text());
	}
</script>

</head>
<body>
	<div id="main-content" style="width: 100px !important;margin-left: 0px">
		<div class="container">
			<div class="row">
				<div id="content" style="width:831px"><!-- class="col-lg-12" -->
					<div class="dao">
						<a class="section" href="employee?empStatus=1">在职员工</a> <i
							class="right chevron icon divider"></i> <span
							class="active section">新增员工</span>
					</div>
					<form class="ui form segment content" method="post"
						onsubmit="return check();">
						<div class="two fields">
							<div class="field">
								<label>姓名</label> <input name="name" type="text"
									value="${param.name }">
							</div>
							<div class="field">
								<label>性别</label>
								<div class="ui selection dropdown">
									<input name="gender" type="hidden" value="${param.gender }">
									<div class="default text">请选择性别</div>
									<i class="dropdown icon"></i>
									<div class="menu">
										<div class="item" data-value="男">男</div>
										<div class="item" data-value="女">女</div>
									</div>
								</div>
							</div>
						</div>

						<div class="field">
							<label>密码(不输入密码默认为1)</label> <input name="password" type="text"
								value="${param.password }">
						</div>
						<div class="two fields">

							<div class="field">
								<label>部门</label>
								<div class="ui selection dropdown">
									<input name="dept" type="hidden" value="${param.dept }">
									<div class="default text">请选择部门</div>
									<i class="dropdown icon"></i>
									<div class="menu">
										<c:forEach items="${deptList }" var="dept">
											<div class="item" data-value="${dept.dept_id }">${dept.dept_name }</div>
										</c:forEach>
									</div>
								</div>
							</div>
							<div class="field">
								<label>职位</label>
								<div class="ui selection dropdown">
									<input name="post" type="hidden" value="${param.post }">
									<div class="default text">请选择职位</div>
									<i class="dropdown icon"></i>
									<div class="menu">
										<c:forEach items="${postList }" var="post">
											<div class="item" data-value="${ post.postId}">${post.postName}</div>
										</c:forEach>
									</div>
								</div>
							</div>
						</div>
						<div class="field">
							<label>电话</label> <input name="tel" type="text"
								value="${param.tel }">
						</div>
						<div class="field">
							<label>邮箱</label> <input name="email" type="text" id="email"
								value="${param.email }">
						</div>
						<div class="field">
							<label>地址</label> <input name="address" type="text"
								value="${param.address }">
						</div>
						<button class="ui blue  button">提交</button>${error}

					</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>